package com.ruoyi.college.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学期信息对象 t_semester
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class Semester extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学期ID */
    private Long semesterId;

    /** 学期编码 */
    @Excel(name = "学期编码")
    private String semesterCode;

    /** 学期名称 */
    @Excel(name = "学期名称")
    private String semesterName;

    /** 学期开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "学期开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 学期结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "学期结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 当前学期 */
    @Excel(name = "当前学期")
    private Integer isCurrent;

    public void setSemesterId(Long semesterId) 
    {
        this.semesterId = semesterId;
    }

    public Long getSemesterId() 
    {
        return semesterId;
    }

    public void setSemesterCode(String semesterCode) 
    {
        this.semesterCode = semesterCode;
    }

    public String getSemesterCode() 
    {
        return semesterCode;
    }

    public void setSemesterName(String semesterName) 
    {
        this.semesterName = semesterName;
    }

    public String getSemesterName() 
    {
        return semesterName;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setIsCurrent(Integer isCurrent) 
    {
        this.isCurrent = isCurrent;
    }

    public Integer getIsCurrent() 
    {
        return isCurrent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("semesterId", getSemesterId())
            .append("semesterCode", getSemesterCode())
            .append("semesterName", getSemesterName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("isCurrent", getIsCurrent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
